package com.share.disruptor.simple;

import com.lmax.disruptor.EventHandler;

/**
 * @desc: 定义事件处理器
 * @author:caifan
 * @date:2021/5/22
 */
public class LongEventHandler implements EventHandler<LongEvent> {
    @Override
    public void onEvent(LongEvent event, long sequence, boolean endOfBatch) throws Exception {
        System.out.println(event.getName() + "::" + event.getValue());
    }
}
